$(function(){
    GetList();

});
function GetList(){
    let page = GetQueryString('page');
    if(!page)page=1;  	
    let data = AjaxForm('admin/msglist?page='+page);
    let html = ``;
    for (let i=0;i<data.list.length;i++){
        let time = formatDateTime(data.list[i].create_time);
        html += `<tr class="table-content" style='height: 50px;'>
					<td style="width: 20%">${data.list[i].title}</td>
                    <td style="width: 55%">${data.list[i].content}</td>
                    <td style="width: 20%">${time}</td>
                `;
    }
    $('#data-table').html(html);
    WepPage(data.count,page,'list');
}